<div class="pageContent">
	<form method="post" action="admin.php?mod=baseset&action=sitebase&do=update" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent sortDrag" selector="h1" layoutH="56">
			<div class="panel collapse" minH="100" defH="200">
				<h1>{lang setting_site}</h1>
				<div>
					<fieldset>
					<legend>{lang setting_site}</legend>
					<dl>
						<dt>{lang site_title}</dt>
						<dd><input name="sitename" class="required" type="text" size="30" value="{$sitename}" alt="{lang please_input_site_title}" /></dd>
					</dl>
					<dl>
						<dt>{lang site_address}</dt>
						<dd><input name="sitedomain" class="required" type="text" size="30" value="{$sitedomain}" alt="{lang please_input_site_address}" /></dd>
					</dl>
					<dl>
						<dt>{lang site_seo_keyword}</dt>
						<dd><input name="seokeywords" class="required" type="text" size="30" value="{$seokeywords}" alt="{lang site_seo_keyword_input}" /></dd>
					</dl>
					<dl>
						<dt>{lang site_seo_description}</dt>
						<dd><input name="seodescription" class="required" type="text" size="30" value="{$seodescription}" alt="{lang site_seo_description_input}" /></dd>
					</dl>
					<dl>
						<dt>{lang site_icp}</dt>
						<dd><input name="site_icp" class="required" type="text" size="30" value="{$site_icp}" alt="{lang site_icp_input}" /></dd>
					</dl>
					<dl>
						<dt>{lang site_rewrite}</dt>
                        <dd style="560px"><input type="radio" name="site_rewrite" value="1" id="site_rewrite_0" <!--{if $_G['setting']['site_rewrite']=='1'}-->checked="checked"<!--{/if}--> />{lang open}
                        <input name="site_rewrite" type="radio" id="site_rewrite_1" value="0" <!--{if $_G['setting']['site_rewrite']=='0'}-->checked="checked"<!--{/if}--> />{lang close}
                        {lang site_rewrite_comment}</dd>
					</dl>
					<dl>
						<dt>{lang site_stat_code}</dt>
		                <dd><textarea name="site_stat" type="text" cols="40" rows="2">{$_G['setting']['site_stat']}</textarea></dd>
					</dl>
					<dl>
						<dt>{lang site_template}</dt>
                        <dd><select name="tpldir">
                            <!--{loop $tpldir_array $key $value}-->
                            <option <!--{if $_G['setting']['tpldir']==$value}-->selected<!--{/if}--> value="{$value}">{$value}</option>
                            <!--{/loop}-->
                        </select></dd>
					</dl>
					<dl style="margin-top:10px;">
                        <dt>{lang site_aliyun_oss}</dt>
                        <dd><input type="radio" name="aliyun_oss" value="1" id="aliyun_oss_0" <!--{if $_G['setting']['aliyun_oss']=='1'}-->checked="checked"<!--{/if}--> />{lang open}
                        <input type="radio" name="aliyun_oss" value="0" id="aliyun_oss_1" <!--{if $_G['setting']['aliyun_oss']=='0'}-->checked="checked"<!--{/if}--> />{lang close}
                    {lang site_aliyun_oss_comment}</dd>
					</dl>
					</fieldset>
				</div>
			</div>
			<div class="panel close collapse" defH="150">
				<h1>{lang setting_server_upload}</h1>
				<div>
					<fieldset>
						<legend>{lang setting_server_upload}</legend>
						<dl>
							<dt>{lang setting_server_upload_dirpath}</dt>
							<dd><input name="server_upload[1][dirpath]" type="text" value="{$_G['setting']['server_upload'][1]['dirpath']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_upload_dirtype}</dt>
							<dd>
								<input type="radio" name="server_upload[1][dirtype]" value="1" id="server_upload_1_dirtype_0" <!--{if $_G['setting']['server_upload'][1]['dirtype']=='1'}-->checked="checked"<!--{/if}--> />{lang setting_server_upload_dirtype_1}
                        		<input type="radio" name="server_upload[1][dirtype]" value="2" id="server_upload_1_dirtype_1" <!--{if $_G['setting']['server_upload'][1]['dirtype']=='2'}-->checked="checked"<!--{/if}--> />{lang setting_server_upload_dirtype_2}
                        		<input type="radio" name="server_upload[1][dirtype]" value="3" id="server_upload_1_dirtype_1" <!--{if $_G['setting']['server_upload'][1]['dirtype']=='3'}-->checked="checked"<!--{/if}--> />{lang setting_server_upload_dirtype_3}
							</dd>
						</dl>
						<dl>
							<dt>{lang setting_server_upload_maxsize}</dt>
							<dd><input name="server_upload[1][maxsize]" type="text" value="{$_G['setting']['server_upload'][1]['maxsize']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_upload_upext}</dt>
							<dd><input name="server_upload[1][upext]" type="text" value="{$_G['setting']['server_upload'][1]['upext']}" /></dd>
						</dl>
					</fieldset>
				</div>
			</div>
			<div class="panel close collapse" defH="150">
				<h1>{lang setting_server_mail}</h1>
				<div>
					<fieldset>
						<legend>{lang setting_server_config}</legend>
						<dl>
							<dt>{lang setting_server_mail_from}</dt>
							<dd><input name="server_mail[1][from]" type="text" value="{$_G['setting']['server_mail'][1]['from']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_mail_fromname}</dt>
							<dd><input name="server_mail[1][fromname]" type="text" value="{$_G['setting']['server_mail'][1]['fromname']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_mail_host}</dt>
							<dd><input name="server_mail[1][host]" type="text" value="{$_G['setting']['server_mail'][1]['host']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_mail_port}</dt>
							<dd><input name="server_mail[1][port]" type="text" value="{$_G['setting']['server_mail'][1]['port']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_mail_username}</dt>
							<dd><input name="server_mail[1][username]" type="text" type="text" value="{$_G['setting']['server_mail'][1]['username']}" /></dd>
						</dl>
						<dl>
							<dt>{lang setting_server_mail_password}</dt>
							<dd><input name="server_mail[1][password]" type="password" value="{$_G['setting']['server_mail'][1]['password']}" /></dd>
						</dl>
					</fieldset>
				</div>
			</div>
        </div>
        <div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">{lang save}</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">{lang cancel}</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
